﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Behaviour.CommandPattern
{
    public class Light : ApplianceControl
    {
        private string name;

        public Light(string name)
        {
            this.name = name;
        }

        public void On()
        {
            System.Diagnostics.Trace.WriteLine(this.name + " Light On");
        }

        public void Off()
        {
            System.Diagnostics.Trace.WriteLine(this.name + " Light Off");
        }

        public override string ToString()
        {
            return this.name;
        }
    }
}
